#
# Makefile for the lombo gmac drivers.
#

ifeq ($(CONFIG_ARCH_LOMBO_N7V1), y)
GMAC_CSP_PLATFORM := n7v1
obj-y += gmac_n.o
else ifeq ($(CONFIG_ARCH_LOMBO_N7V3), y)
GMAC_CSP_PLATFORM := n7v3
obj-y += gmac_e.o
endif

SOURCE := $(srctree)/$(src)/csp/$(GMAC_CSP_PLATFORM)/gmac_csp.c

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(GMAC_CSP_PLATFORM)/
else
ifneq ($(TARGET_TOOLS_PREFIX), arm-ez-linux-uclibcgnueabihf-)
uclibc_prefix:=
else
uclibc_prefix:=uclibc/
endif
obj-y += liblombo_gmac.o
$(obj)/liblombo_gmac.o: $(src)/csp/$(GMAC_CSP_PLATFORM)/$(uclibc_prefix)liblombo_gmac
	cp $< $@
endif
